<!-- Vectrics demo layout_admin.jsp -->
<%@ page language="java" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<%@ taglib uri="/WEB-INF/vectrics.tld"    prefix="vectrics" %>

<%@ page import="org.vectrics.provider.*" %>

<%

	String onLoad="this.focus();";

	if (request.getParameter("closeWindow") != null) {
		onLoad += "opener.location.reload();window.close();";
	}
	
	boolean isPopUpWindow = false;
	if ((request.getParameter("popupWindow") != null) || (((String)request.getAttribute("popupWindow")) != null)) {
		isPopUpWindow = true;
	} 

%>
<tiles:useAttribute id="title" name="title" classname="java.lang.String" />
<tiles:useAttribute id="pageHeader" name="pageHeader" classname="java.lang.String" />

<html>
	<head>
	    <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
		<title><bean:message key="<%=title%>"/></title>
	    <meta http-equiv="pragma" content="no-cache">
	    <link href="/hrs-intranet/custom/main.css" type="text/css" rel="stylesheet">
		<link rel="stylesheet" href="/hrs-intranet/custom/menu1.css" id="css_menu">

  		<script type="text/javascript" src="/recruit/custom/CalendarItem.js"></script>

		<!--  Date Picker Calendar  ------------------------------------------------------------   -->
	    <link href="/recruit/custom/calendar/calendar-win2k-1.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="/hrs-intranet/custom/calendar/calendar.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/calendar/lang/calendar-en.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/calendar/calendar-setup.js"></script>
		<!--  ----------------------------------------------------------------------------------   -->


		<script type="text/javascript" src="/hrs-intranet/custom/ajaxtk/xml/AjxXmlDoc.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/ajaxtk/core/AjxCore.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/ajaxtk/core/AjxEnv.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/ajaxtk/core/AjxException.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/ajaxtk/core/AjxImg.js"></script>


	    <script language="JavaScript" src="/hrs-intranet/custom/menu.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/js/vectrics.js"></script>
		<script type="text/javascript" src="/hrs-intranet/custom/js/logging.js"></script>
	    
	</head>
	
	<body leftmargin="0" rightmargin="0" topmargin="0" bottommargin="0" marginwidth="0" marginheight="0" 
		onload="<%=onLoad%>" bgcolor="#ffffff">
			<h2><bean:message key="<%=pageHeader%>"/></h2>
	        <div><tiles:insert attribute="body"/></div>
			<%
				// Debug div - needed for log() statements.
				if (CoreServiceLocator.getConfiguration().getJavaScriptDebug()) {
			%>
									<br><font>Debug Log</font>
									<div id="debugDiv" style="position:relative; top:10px; left:10px; width:90%; height:250px;background-color:#dddda0; text-align:left; padding:0px;border: solid 1px #339999;z-index:0;overflow:auto;">
									</div>
			<%
				}
			%>

	        <div><tiles:insert attribute="footer"/></div>
	</body>
</html>